package
{
	import com.bit101.components.Label;
	import com.feng.components.MLabel;

	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.text.TextField;
	import flash.utils.getTimer;

	import fla.ui.TextTest;

	public class TestLabel extends Sprite
	{
		public function TestLabel()
		{
			new Label(this, 0, 0, "aaa");

			var textTest:TextTest = new TextTest();
			addChild(textTest);

			MLabel.make(textTest.aTxt);

			textTest.aTxt.text = "12345";

			addEventListener(Event.ENTER_FRAME, function(e:Event):void
			{
				MLabel.getLabel(textTest.aTxt).text = "" + getTimer();
			});

		}

		private function tansferTextField(disO:DisplayObject):void
		{
			var parent:DisplayObjectContainer = disO as DisplayObjectContainer;
			var textField:TextField = disO as TextField;
			if (parent)
			{
				for (var i:int = 0; i < parent.numChildren; i++)
				{
					tansferTextField(parent.getChildAt(i));
				}
			}
			else if (textField)
			{

			}
		}
	}
}
